<?php
class General_Autoloader
{
	public static  function init()
	{
		function __autoload($className)
		{
			$pathToClass = '';
			$classPartsArr = explode('_', $className);
			$ds = DIRECTORY_SEPARATOR;
			foreach($classPartsArr as $path)
			{
				if($pathToClass)
				{
				$pathToClass .= $ds;
				}
				$pathToClass .= $path;
			}
			require_once $pathToClass.'.php';
		}
	}
}